dataSource {
	pooled = true
	driverClassName = "org.postgresql.Driver"
//	username = "usu1"
//	password = "usu1"
}
hibernate {
	cache.use_second_level_cache = true
	cache.use_query_cache = false
	cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}
// environment specific settings
environments {
	development {
		dataSource {
			dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', 'create-drop'
			url = "jdbc:postgresql://localhost:5432/SIG_DESA"
			username = "postgres"
			password = "postgres"
		}
	}
	test {
		dataSource {
			dbCreate = "update"
			url = "jdbc:postgresql://localhost:5432/SIG_TEST;MVCC=TRUE;LOCK_TIMEOUT=10000"
			username = "postgres"
			password = "postgres"
		}
	}
	production {
		dataSource {
			pooled = true
			driverClassName = "org.postgresql.Driver"
			username = "postgres"
			password = "postgres"
			dbCreate = "update"
			url = "jdbc:postgresql://127.0.0.1:5432/SIG_PROD"
//			properties {
//			   maxActive = -1
//			   minEvictableIdleTimeMillis=1800000
//			   timeBetweenEvictionRunsMillis=1800000
//			   numTestsPerEvictionRun=3
//			   testOnBorrow=true
//			   testWhileIdle=true
//			   testOnReturn=true
//			   validationQuery="SELECT 1"
//			   
//			}
		}
	}
}
